module.exports = {
    devServer: {
        // --open --contentBase src --port 3000 --hot",
        open: true,
        contentBase: 'src',
        port: 3000,
        hot: true,
        proxy: {
            //代理名称
            '/api': {     //这里最好有一个 /
                target: 'http://wkt.myhope365.com',  // 后台接口域名
                changeOrigin: true,  //是否跨域
                //路径重写
                pathRewrite:{
                    '^/api':''
                }
            }
        }
    },
    css: {
        loaderOptions: {
            less: {
                lessOptions: {
                    // If you are using less-loader@5 please spread the lessOptions to options directly
                    modifyVars: {
                        'primary-color': '#22db9b',
                        'link-color': '#22db9b',
                        'border-radius-base': '2px',
                    },
                    javascriptEnabled: true,
                },
            },
        },
    },
}